﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Wintellect.Sterling;
using Wintellect.Sterling.Database;
using System.Collections.Generic;

namespace TM.QWeibo.Cache
{
   partial class ItemDatabase:BaseDatabaseInstance
    {
        public override string Name
        {
            get
            {
                return "TM.QWeibo.Cache.Database";
            }
        }

       protected override System.Collections.Generic.List<ITableDefinition> RegisterTables()
        {
            return new System.Collections.Generic.List<ITableDefinition>
            {
                CreateTableDefinition<SDK.Objects.Tweet,string>(i=>i.Id),
                CreateTableDefinition<SDK.Objects.UserInfo,string>(i=>i.Name),
                CreateTableDefinition<SDK.Objects.UserInfoBase,string>(i=>i.Name)
            };
        }

    }
}
